package com.wjyf.reducing_bento.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wjyf.reducing_bento.model.entity.InviteRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wjyf.reducing_bento.model.vo.InviteRecordVo;

import javax.servlet.http.HttpServletRequest;

/**
* @author 26439
* @description 针对表【tb_invite_record(邀请记录表)】的数据库操作Service
* @createDate 2023-04-29 19:14:29
*/
public interface InviteRecordService extends IService<InviteRecord> {
    /**
     * 绑定邀请人信息
     * @param invitationCode 邀请码
     * @param uId 邀请人ID
     */
    void bindInviter(String invitationCode, Long uId);

    /**
     * 用户查询邀请记录
     * @param current 当前页
     * @param pageSize 当前页大小
     * @param flag
     * @param request
     * @return
     */
    Page<InviteRecordVo> userGetInviteRecordList(Long current, Long pageSize, Integer flag, HttpServletRequest request);

    Page<InviteRecordVo> adminGetInviteRecordList(Long current, Long pageSize, Integer flag);
}
